package com.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

public class SysRole implements Serializable {
  @TableId(type= IdType.AUTO)
  private long roleId;
  private String roleName;
  private String roleDesc;
  private long roleFlag;

  /**
   * 当前用户拥有的权限
   */
  @TableField(exist = false)
  private List<SysRight> rights;

  public List<SysRight> getRights() {
    return rights;
  }

  public void setRights(List<SysRight> rights) {
    this.rights = rights;
  }

  public long getRoleId() {
    return roleId;
  }

  public void setRoleId(long roleId) {
    this.roleId = roleId;
  }


  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }


  public String getRoleDesc() {
    return roleDesc;
  }

  public void setRoleDesc(String roleDesc) {
    this.roleDesc = roleDesc;
  }


  public long getRoleFlag() {
    return roleFlag;
  }

  public void setRoleFlag(long roleFlag) {
    this.roleFlag = roleFlag;
  }

}
